This section discusses functions that allow applications to obtain information about the capabilities and current state of video digitizer components.
You can use the VDGetDigitizerInfo function in your application to retrieve information about the capabilities of a video digitizer component. You can use the VDGetCurrentFlags function to obtain current status information from a video digitizer component.
The VDGetDigitizerInfo function returns capability and status information about a specified video digitizer component.
All video digitizer components must support this function.
pascal VideoDigitizerError VDGetDigitizerInfo
(VideoDigitizerComponent ci,
DigitizerInfo *info);
The VDGetCurrentFlags function returns status information about a specified video digitizer component.
All video digitizer components must support this function.
pascal VideoDigitizerError VDGetCurrentFlags
(VideoDigitizerComponent ci,
long *inputCurrentFlag,
long *outputCurrentFlag);
The VDGetCurrentFlags function returns the status information into two fields that contain flags specifying the current input and output status of the digitizer component.
You can also use the VDGetDigitizerInfo function (described in the previous section) in your application to retrieve capability and current status information about a video digitizer component.
The VDGetCurrentFlags function is often more convenient than the VDGetDigitizerInfo function. For example, this function provides a simple mechanism for determining whether a video digitizer is receiving a valid input signal. An application can retrieve the current input state flags and test the high-order bit by examining the sign of the returned value. If the value is negative (that is, the high-order bit, digiInSignalLock , is set to 1), the digitizer component is receiving a valid input signal.